export const mapState = (label?: string): number | undefined => {
  const map: Record<string, number> = {
    未发布: 0,
    已发布: 1,
  };
  return label ? map[label] : undefined;
};

//Record<string,number> ==> {[ket:string]:number}
